#pragma once
#include "usr.h"
#include "book.h"
#include "status.h"
//don't carried with head node
typedef struct book_node{
	char bid[20];
	struct book_node *next; 
}bk_list;
//carried with head node
typedef struct usr_bk_node{
	bk_list *bks;
	int uid[10];
	struct usr_bk_node *next;
}usr_bk_list;

status usr_bk_init(usr_bk_list *l);

status jie(usr_bk_list *l,unsigned int *uid,char *bid);

status huan(usr_bk_list *l,unsigned int *uid,char *bid);

void find_by_uid(usr_bk_list *l,unsigned int *uid);

